/*package com.eascs.ant.data.dao;

import java.util.HashMap;
import java.util.Map;

import com.eascs.ant.data.mongo.MongoSession;
import com.eascs.ant.data.mongo.entity.MongoPageQuery;
import com.eascs.ant.data.mongo.entity.MongoSetting;
import com.eascs.app.dao.PageResult;

public class MongoDaoTest {

	protected MongoSession mongoSession;
	
	public MongoDaoTest(){
		MongoSetting setting = new MongoSetting();
		setting.setDatabase("spider");
		setting.setHost("172.29.13.121");
		setting.setPort(27017);
		setting.setUser("spider");
		setting.setPassword("spiderQWwe741");
		mongoSession = new MongoSession(setting);
	}
	
	public MongoSession getMongoSession() {
		return mongoSession;
	}

	public void setMongoSession(MongoSession mongoSession) {
		this.mongoSession = mongoSession;
	}


	public PageResult<Object[]> findDataArrayWithPage(MongoPageQuery<Object> mpq) {
		return mongoSession.findDataArrayWithPage(mpq);
	}
	
	public Map<String, Object>findOne(Map<String, Object> filter ,String collectionName){
		return mongoSession.findOne(filter , collectionName);
	}
	
	public static void main(String[] args) {
		MongoDaoTest test = new MongoDaoTest();
		Map<String, Object> filter = new HashMap<String, Object>();
		filter.put("account", "zhangping.hu");
		filter = test.findOne(filter ,"hr_favorite");
		System.out.println(filter.toString());
	}
}*/